package domain.game;

import com.uqbar.vainilla.GameComponent;

import domain.scenes.MainGameScene;

public class GameState extends GameComponent<MainGameScene> {

	private KeysHandler keysHandler;

	public GameState(KeysHandler kh){
		this.keysHandler = kh;
	}
	
	public KeysHandler getKeysHandler() {
		return keysHandler;
	}

	public void setKeysHandler(KeysHandler keysHandler) {
		this.keysHandler = keysHandler;
	}
	public void newState(GameState state){
		this.keysHandler.setGameState(state);
	}
	
	protected void waitingState() {
		this.keysHandler.setGameState(new WaitingState(this.keysHandler));
	}
	
}
